finding the percentage solution